package com.stylefeng.guns.rest.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by ASUS-PC on 2018/6/26.
 */
@TableName(value = "vl_share_record")
public class ShareRecord extends Model<ShareRecord>{
    private static final long serialVersionUID = 1L;
    private int id;
    @TableField(value = "artitle_id")
    private int artitleId;
    @TableField(value = "share_type")
    private int shareType;
    @TableField(value = "user_id")
    private int userId;
    @TableField(value = "create_time")
    private Date createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getArtitleId() {
        return artitleId;
    }

    public void setArtitleId(int artitleId) {
        this.artitleId = artitleId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getShareType() {
        return shareType;
    }

    public void setShareType(int shareType) {
        this.shareType = shareType;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
